<!DOCTYPE html>
<html>
<head>
    <title>箱子管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="/css/bootstrap-responsive.css" rel="stylesheet" media="screen">
    <link rel="stylesheet" type="text/css" href="/css/style.css">
    <script src="/lib/jq/jquery-2.1.1.min.js"></script>
    <script src="/lib/jq/bootstrap.min.js"></script>
    <script type="text/javascript" src="/js/billing.js"></script>
</head>
<body style="margin:15px;">
<div id="lert"></div>
<% if (success) { %>
<div class="alert alert-success">
    <h4><%= success %></h4>
</div>
<% } %>
<% if (error) { %>
<div class="alert alert-error">
    <h4><%= error %></h4>
</div>
<% } %>
<legend>计费设置</legend>
<form onsubmit="return check()" style="margin-left: 25%" action="/user_system/billing" method="post" name="form1" class="form-horizontal">
    <div style="margin-bottom:25px;"><span style="color:red;">*</span>项为必填项</div>
    <%if(pri==0){%>
    <div class="control-group">
        <label class="control-label"><span style="color:red;">*</span>基础费用：</label>
        <div class="controls">
            <input style="width: 10%" type="text" id="standard" name="standard" />
            <input type="hidden" name="boxid" value="<%=boxid%>"/>
            <input type="hidden" name="account" value="<%=account%>"/>
            <select style="width: 12%;margin-right: 2%" name="timetype" id="timetype">
                <option value="0">分钟</option>
                <option value="1">小时</option>
            </select>=
            <input style="width: 10%;margin-left:2%;margin-right: 2%" type="text" id="price" name="price" />元
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">小于：</label>
        <div class="controls">
            <input style="width: 10%" type="text" id="less" name="less" />
            <select style="width: 12%;margin-right: 2%" name="lesstimetype" id="lesstimetype">
                <option value="0">分钟</option>
                <option value="1">小时</option>
            </select>=
            <input style="width: 10%;margin-left:2%;margin-right: 2%" type="text" id="lessprice" name="lessprice" />元
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">大于：</label>
        <div class="controls">
            <input style="width: 10%" type="text" id="more" name="more" />
            <select style="width: 12%;margin-right: 2%" name="moretimetype" id="moretimetype">
                <option value="0">分钟</option>
                <option value="1">小时</option>
            </select>=
            <input style="width: 10%;margin-left:2%;margin-right: 2%" type="text" id="moreprice" name="moreprice" />元
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <input type="submit" style="width:55px;height:30px;background-color:#DBDBDB;border:1px solid #DBDBDB;border-radius:3px;" value="提交" id="sub_btn">
        </div>
    </div>
    <%}else if(pri==1){%>
    <div class="control-group">
        <label class="control-label"><span style="color:red;">*</span>基础费用：</label>
        <div class="controls">
            <input style="width: 10%" value="<%=standard%>" type="text" id="standard" name="standard" />
            <input type="hidden" name="boxid" value="<%=boxid%>"/>
            <input type="hidden" name="account" value="<%=account%>"/>
            <select style="width: 12%;margin-right: 2%" name="timetype" id="timetype">
                <option value="0">分钟</option>
                <option value="1">小时</option>
            </select>=
            <input style="width: 10%;margin-left:2%;margin-right: 2%" value="<%=price%>" type="text" id="price" name="price" />元
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">小于：</label>
        <div class="controls">
            <%if(less==null){%>
            <input style="width: 10%" type="text" id="less" name="less" />
            <select style="width: 12%;margin-right: 2%" name="lesstimetype" id="lesstimetype">
                <option value="0">分钟</option>
                <option value="1">小时</option>
            </select>=
            <input style="width: 10%;margin-left:2%;margin-right: 2%" type="text" id="lessprice" name="lessprice" />元
            <%}else{%>
            <input style="width: 10%" type="text" value="<%=less%>" id="less" name="less" />
            <select style="width: 12%;margin-right: 2%" name="lesstimetype" id="lesstimetype">
                <option value="0">分钟</option>
                <option value="1">小时</option>
            </select>=
            <input style="width: 10%;margin-left:2%;margin-right: 2%" value="<%=lessprice%>" type="text" id="lessprice" name="lessprice" />元
            <%}%>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">大于：</label>
        <div class="controls">
            <%if(more==null){%>
            <input style="width: 10%" type="text" id="more" name="more" />
            <select style="width: 12%;margin-right: 2%" name="moretimetype" id="moretimetype">
                <option value="0">分钟</option>
                <option value="1">小时</option>
            </select>=
            <input style="width: 10%;margin-left:2%;margin-right: 2%" type="text" id="moreprice" name="moreprice" />元
            <%}else{%>
            <input style="width: 10%" type="text" value="<%=more%>" id="more" name="more" />
            <select style="width: 12%;margin-right: 2%" name="moretimetype" id="moretimetype">
                <option value="0">分钟</option>
                <option value="1">小时</option>
            </select>=
            <input style="width: 10%;margin-left:2%;margin-right: 2%" value="<%=moreprice%>" type="text" id="moreprice" name="moreprice" />元
            <%}%>
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <input type="submit" style="width:55px;height:30px;background-color:#DBDBDB;border:1px solid #DBDBDB;border-radius:3px;" value="提交" id="sub_btn">
        </div>
    </div>
    <%}%>
</form>
</body>
</html>